package cc.wanforme.chipmunity.system.po;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * @author wanne
 * 2019年8月16日
 * 
 */
public class TopPassage implements Serializable{

	private static final long serialVersionUID = 1L;

	@TableId(type = IdType.AUTO)
	private Long id;
	
	private Long subjectId;
	
	private Long passageId;
	
	private int sortSign;
	
	private Date startTime;
	
	private Date endTime;
	
	

	public TopPassage() {
		super();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getSubjectId() {
		return subjectId;
	}

	public void setSubjectId(Long subjectId) {
		this.subjectId = subjectId;
	}

	public Long getPassageId() {
		return passageId;
	}

	public void setPassageId(Long passageId) {
		this.passageId = passageId;
	}

	public int getSortSign() {
		return sortSign;
	}

	public void setSortSign(int sortSign) {
		this.sortSign = sortSign;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public TopPassage(Long subjectId, Long passageId, int sortSign, Date startTime, Date endTime) {
		super();
		this.subjectId = subjectId;
		this.passageId = passageId;
		this.sortSign = sortSign;
		this.startTime = startTime;
		this.endTime = endTime;
	}
	
	public TopPassage(Long subjectId, Long passageId, int sortSign, Date endTime) {
		this(subjectId, passageId, sortSign, new Date(), endTime);
	}
}
